#region Summary

// 
// Owner : JackieHan 
// 
// Solution : DailyCollection 
// 
// Project : Jackie.Utility.Notify
// 
// File : ISubiscribeMessage.cs
// 
// CopyRight : Copyright © 2010-2011 Skomart Corporation, All Rights Reserved 
// 
// Summary : 消息订阅发布接口
// 
// History : 
//			2011-04-25 18:37:18	    Create 
// 

#endregion

#region Using

using System;
using System.Collections.Generic;
using System.ServiceModel;
using Jackie.Utility.Notify.Domain;

#endregion

namespace Jackie.Utility.Notify.Service
{
    /// <summary> 
    /// 消息订阅发布接口
    /// </summary>
    [ServiceContract(CallbackContract = typeof(IReceivedMessage))]
    public interface ISubscribe
    {
        /// <summary>
        /// 订阅
        /// </summary>
        /// <returns></returns>
        [OperationContract(IsOneWay = true)]
        void Subscribe(string clientSign, string title);
        /// <summary>
        /// 取消订阅
        /// </summary>
        /// <returns></returns>
        [OperationContract(IsOneWay = true)]
        void Unsubscribe(string clientSign, string title);
        /// <summary>
        /// 获取
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        IEnumerable<TitleInfo> GetAllTitles();
    }
}